package com.qt.thread;

import java.util.concurrent.Callable;

/**
 * @Author zsf
 * @Date 2023/10/2 18:46
 * @Version 1.0
 */
public class MyCallable  implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int res = 0;
        for (int i = 0; i < 100; i++) {
            res += i;
        }
        return res;
    }
}
